package com.yuerlive.rainbow.module.game;

/**
 * Created by xiaoyi on 2017/7/5.
 */

public enum GameType {
    NONE(0),
    niuniu(1),  //欢乐牛牛
    catmouse(2),  //猫鼠游戏
    sanguo(3)  //三英战吕布
;
   public  int type;

    GameType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public static GameType valueOf(int type){
        for (GameType gameType : values()) {
            if (gameType.getType() == type){
                return gameType;
            }
        }
        return niuniu;
    }
}
